cmake_minimum_required(VERSION 2.8.3)
project(stereo_record)

## Compile as C++11, supported in ROS Kinetic and newer
add_compile_options(-std=c++11)

## Find catkin macros and libraries
## if COMPONENTS list like find_package(catkin REQUIRED COMPONENTS xyz)
## is used, also find other catkin packages
find_package(catkin REQUIRED COMPONENTS
  roscpp
  rospy
  std_msgs
)
set(OpenCV_DIR "/home/allen/3rd_party/opencv-3.4.5/build/")
find_package(OpenCV REQUIRED)
include_directories(
# include
  ${catkin_INCLUDE_DIRS}
)
include_directories(${OPENCV_INCLUDE_DIRS})
link_directories(${OPENCV_LIBRARY_DIRS})
SET(EXECUTABLE_OUTPUT_PATH "../../devel/lib/stereo_record")
add_executable(${PROJECT_NAME}_node
  src/stereo_record.cpp
)
add_dependencies(${PROJECT_NAME}_node ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
target_link_libraries(${PROJECT_NAME}_node
  ${catkin_LIBRARIES} ${OpenCV_LIBRARIES}
)
